package bishi.youzan;

/**
 * @author: 唐小尊
 * @email: 1171702529@qq.com
 * @cate: 2021/09/11 15:06
 */
public class two {
    public boolean method1 (int num) {
        String s = Integer.toString(num);
        int left = 0;
        int right = s.length()-1;
        while (left<right){
            if (s.charAt(left++)!=s.charAt(right--)) return false;
        }
        return true;
    }
}
